//app.js
App({
  onLaunch: function () {
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)  
    var that= this;
    wx.getSystemInfo({
      success(res) {
        that.globalData.isIphoneXX = (res.model.indexOf("iPhone") != -1 && res.model.indexOf("X") != -1);
      
      }
    })
   
  },
  globalData: {
    wxuserInfo:null,
    userInfo: null,
    itemInfo: null,
    isLogin:false,
    isIphoneXX:false,
    url: "https://hanjiafushi.com/Services/WXServer.asmx/"
  }
})